import * as vscode from "vscode";
import { AgentWebviewProvider } from "./agentWebviewProvider";

export function activate(context: vscode.ExtensionContext) {
  const provider = new AgentWebviewProvider(context);
  context.subscriptions.push(
    vscode.window.registerWebviewViewProvider(
      "minial-coding-agent.webview",
      provider
    )
  );

  context.subscriptions.push(
    vscode.commands.registerCommand("minimal-coding-agent.helloWorld", () => {
      provider.postMessage("Hello World!");
    })
  );
}

export function deactivate() {}
